package com.qdxwx.data.mapper.account;


import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.account.UserAccountDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * UserAccountDetail接口
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Repository
public interface UserAccountDetailMapper {

    int insertUserAccountDetail(UserAccountDetail userAccountDetail);

    UserAccountDetail selectById(Long id);

    List<UserAccountDetail> selectList(@Param("e") UserAccountDetail userAccountDetail, @Param("page") PageRequest page);

    int selectCount(@Param("e") UserAccountDetail userAccountDetail);

    UserAccountDetail getUserAccountDetailByOrderId(int orderId, long userId);

    int updateCombine(long userId1, long userId2);
}